<template>
  <div class="nav-box">
    <router-link :to="props.path" class="container">
      <span class="containerItem">

        {{ props.title }}
      </span>
    </router-link>
  </div>
</template>
<script lang="ts" setup>
import { defineProps } from 'vue';
let props = defineProps({
  span: Number,
  path: String,
  title: String,
});
</script>

<style scoped>
*{
  list-style: none;
  text-decoration: none;
  margin: 0px;
  padding: 0px;
}
.nav-box{
  width:100%;
  height: 100%;
}
.container{
  display: flex;
  justify-content: center;
  align-items: center;
  width:100%;
  height: 100%;
}
.containerItem{
  text-align: center; /* 水平居中 */
}
</style>
